<?php

class Administrator_IndexController extends Zend_Controller_Action
{

    public function init()
    {
        /* Initialize action controller here */
    }

    public function preDispatch()
    {
    	$auth = Zend_Auth_Admin::getInstance();
    	$controllername = $this->_request->getControllerName();
    	if (!$auth->hasIdentity()) {
    		if ($controllername != 'login') {
    			$this->_redirect('administrator/login');
    			 
    		}
    	}
    	
    }

    public function indexAction()
    {
        $this->_redirect('administrator/system');
    }

    public function detailuserAction()
    {
        // action body
    }


}



